<script type="text/javascript" src="<?=base_url('tinymce/js/tinymce/tinymce.min.js') ?>"></script>
<script type="text/javascript">
tinymce.init({
    selector: "textarea",
    plugins: [
        "advlist autolink lists link image charmap print preview anchor",        
    ],    
});
</script>
<form class="form-horizontal" role="form" method="post" action="<?=site_url('news/edit/'.$new->id) ?>" enctype="multipart/form-data">  
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Tiêu đề</label>
    <div class="col-sm-5">
      <input id="codeInput" type="text" name="title" class="form-control" placeholder="Tiêu đề bài viết.." value="<?=$new->title; ?>" required autofocus>
    </div>
  </div>     
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Bài viết</label>
    <div class="col-sm-10">
      <textarea name="detail" rows="20" style="width:100%"><?=$new->detail ?></textarea>
    </div>
  </div>  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" name="add" value="add-all" class="btn btn-primary">Cập nhật</button>
    </div>
  </div>    
</form>